var ipt = document.querySelector("#ipt");
var btn = document.querySelector("#btn");
var wei1 = document.querySelector("#wei1");
var yi1 = document.querySelector("#yi1");

btn.addEventListener('click',function(){
	var span = document.createElement('span')
	var spanText = document.createTextNode(ipt.value)
	span.appendChild(spanText)
	
	var button = document.createElement('button')
	var buttonText = document.createTextNode('')
	button.appendChild(buttonText)
	
	button.addEventListener('click',function(){
		wei1.removeChild(this.parentNode)
	})
	
	var button1 = document.createElement('button')
	var buttonText1 = document.createTextNode('删除')
	button1.appendChild(buttonText1)
	
	button1.addEventListener('click',function(){
		wei1.removeChild(this.parentNode)
	})
	
	var li = document.createElement('li')
	li.appendChild(button)
	li.appendChild(span)
	li.appendChild(button1)
	
	
	wei1.appendChild(li)
	
	
	
	button.addEventListener('click',function(){
		var span = document.createElement('span')
		var spanText = document.createTextNode(ipt.value)
		span.appendChild(spanText)
		
		
		
		var button1 = document.createElement('button')
		var buttonText1 = document.createTextNode('删除')
		button1.appendChild(buttonText1)
		
		button1.addEventListener('click',function(){
			yi1.removeChild(this.parentNode)
		})
		
		var li = document.createElement('li')
		
		li.appendChild(span)
		li.appendChild(button1)
		
		
		yi1.appendChild(li)
		
		
	})
})

